<?php echo $data['planning']; ?>

<script type="text/javascript">
  <?php foreach($data['reserv'] as $k1=>$v1): ?>
    <?php echo displayApp($v1, $k1); ?>
  <?php endforeach; ?>
  
</script>